//
const  express=require('express');
const  wearService=require('../service/wearService');

var router=express.Router();

router.use('/cloths/details',async(req,res,next)=>{
    var GET=req.query;
    var kind=GET.kind;
    if(kind==undefined||kind=={}||kind==[]){
        kind='kid';
    };
    var data=await wearService.findByKind(kind);
    res.send(data);
});

exports.router=router;
